Page({
  data: {
    colors: ['#00e1f0', '#00e1f0', '#00e1f0', '#00e1f0', '#00e1f0', '#00e1f0', '#00e1f0']
  },
  start: function(e) {
    var array = this.data.colors
    var index = e.currentTarget.dataset.index
    array[index] = '#00b8c4'
    this.setData({
      colors: array
    })
  },
  end: function(e) {
    var array = this.data.colors
    var index = e.currentTarget.dataset.index
    array[index] = '#00e1f0'
    this.setData({
      colors: array
    })
    if (index == 0) {
      wx.navigateTo({
        url: '../admManage/admManage?type=stu'
      })
    } else if (index == 1) {
      wx.navigateTo({
        url: '../admProgress/admProgress'
      })
    } else if (index == 2) {
      wx.navigateTo({
        url: '../admSetup/admSetup'
      })
    } else if (index == 3) {
      wx.navigateTo({
        url: '../changePas/changePas'
      })
    } else if (index == 4) {
      wx.navigateTo({
        url: '../admManage/admManage?type=tea'
      })
    } else if (index == 5) {
      wx.navigateTo({
        url: '../admNews/admNews'
      })
    } else if (index == 6) {
      wx.navigateTo({
        url: '../admNotice/admNotice'
      })
    }
  }
})